package com.qdu.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.qdu.entity.LessionPlan;

public interface LessionPlanMapper {

	LessionPlan selectLessionPlanById(int id);

	boolean addLessionPlan(@Param("mjid") int mjid,
			@Param("termId") int termId, @Param("cid") String cid);

	boolean modifyLessionPlan(@Param("lessionPlan") LessionPlan lessionPlan, @Param("mjid") int mjid,
			@Param("termId") int termId, @Param("cid") String cid);

	boolean deleteLessionPlanById(int id);

	LessionPlan selectLessionPlanByMjidandTermIdandCid(@Param("mjid") int mjid, @Param("termId") int termId,
			@Param("cid") String cid);
	
	List<LessionPlan> selectLessionPlanByTermId(int termId);
	
	List<LessionPlan> selectLessionPlanBymjid(int mjid);
	
	List<LessionPlan> selectLessionPlanBymjidAndtermId(
			@Param("mjid")int mjid,
			@Param("termId")int termId);
	
	List<LessionPlan> selectAllLessionPlan();
}
